package com.xugongzhang.spring;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author X
 * @date 2022/11/28 23:37
 */
//@SpringBootConfiguration
//@EnableAutoConfiguration
//@ComponentScan(value = "com.xugongzhang.spring", excludeFilters = {
//        @ComponentScan.Filter(type = FilterType.CUSTOM, classes = {
//                MyTypeFilter.class
//        })
//})
//@ComponentScan(value = {"com.xugongzhang.boot"}, includeFilters = {
//        @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = {Controller.class, RestController.class})
//}, useDefaultFilters = false)
//@ComponentScans(value = {
//        @ComponentScan(value = {"com.xugongzhang.boot"}, includeFilters = {
//                @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = {Controller.class, RestController.class})
//        }, useDefaultFilters = false),
//        @ComponentScan(value = "com")
//})
@SpringBootApplication
public class MainApp {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(MainApp.class);
//        System.out.println(run.getBean("&personFactoryBean").getClass());
    }
}
